import {
	createApp
} from 'vue';
import {
	createStore
} from 'vuex';

// 创建一个新的 store 实例
const store = createStore({
	state() {
		return {
			scrollTop: 0,
			tabNew:false,
		};
	},
	getters: {
		getScrollTop(state) {
			return state.scrollTop;
		}
	},
	mutations: {
		setScrollTop(state, e) {
			state.scrollTop = e;
		},

	},
	actions: {
		renewScrollTop(context, e) {
			context.commit('setScrollTop', e);
		},
	}
});

export default store;
